package com.huifaapp.mall.activity;

import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;

import com.google.gson.Gson;
import com.hjm.bottomtabbar.BottomTabBar;
import com.huifaapp.mall.R;
import com.huifaapp.mall.bean.JDcomclassifyBean;
import com.huifaapp.mall.uitils.Contig;
import com.squareup.okhttp.Request;
import com.zhy.http.okhttp.OkHttpUtils;
import com.zhy.http.okhttp.callback.StringCallback;

import java.util.ArrayList;
import java.util.List;


public class TmallActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.tmallframe_activity);
        Contig.typex=getIntent().getStringExtra("typex");
        Log.e("类型","qqqqq"+Contig.typex);
//        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
//            setTranslucentStatus(true);
//        }
//
//        SystemBarTintManager tintManager = new SystemBarTintManager(this);
//        tintManager.setStatusBarTintEnabled(true);
//        //设置状态栏颜色
//        tintManager.setStatusBarTintResource(R.color.statusbar_bg);
        BottomTabBar bottomTabBar = (BottomTabBar) findViewById(R.id.bottom_tab_bar);
        bottomTabBar.init(getSupportFragmentManager())
                .setImgSize(80, 80)
                .setFontSize(11)
                .setTabPadding(4, 6, 10)
                .setChangeColor(Color.RED, Color.DKGRAY)
                .addTabItem("首页", R.drawable.shouye_d, R.drawable.shouye, Tmall_homepage2Fragment.class)
                .addTabItem("分类", R.drawable.fenlei_d, R.drawable.fenlei,Tmallclassify_Fragment.class)
                .addTabItem("店铺", R.drawable.dianpu_d, R.drawable.dianpu,Tmall_shopkeeperFragment.class)
                .addTabItem("我的", R.drawable.wode_d, R.drawable.wode,MineFragment.class)
                .isShowDivider(true);
        httpinit();
    }

    private void httpinit() {

    }
}